<?php

include("../utility/connection.php");
include("../model/mUser.php");
session_start();

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    unset($_SESSION['ubah']);
    unset($_SESSION['ubahUser']);
    $UserId = trim(mysql_real_escape_string($_POST["hidIdUser"]));
    fnDeleteUser($UserId);
    unset($_SESSION['userId']);
    unset($_SESSION['userResult']);
    header("location: ../ui/admin/userAdmin.php");
}
?>